package com.hhkj.study.admin.user.model.req;

import com.ruoyi.common.valid.VAdd;
import com.ruoyi.common.valid.VDisable;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @Author luowu
 * @Date 2024/9/19 涵 16:30:34
 */
@Data
public class UserCloseReq implements Serializable {


    @NotNull(message = "id不能为空", groups = VDisable.class)
    private Long id;
    /**
     * id列表
     */
    @NotEmpty(message = "id列表不能为空", groups = VAdd.class)
    private List<Long> idList;

    /**
     * 原因
     */
    @NotBlank(message = "原因不能为空", groups = {VDisable.class, VAdd.class})
    private String reason;
}
